package com.zby.lease.model.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zby.lease.model.enums.ItemType;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.dromara.autotable.annotation.AutoColumn;
import org.dromara.autotable.annotation.AutoTable;
import org.dromara.autotable.annotation.mysql.MysqlTypeConstant;

@Data
@Schema(description = "配套信息")
@TableName(value = "facility_info")
@AutoTable
public class FacilityInfo extends BaseEntity{
    private static final long serialVersionUID = 1L;
    @Schema(description = "配套的所属对象类型")
    @TableField(value = "type")
    @AutoColumn(type = MysqlTypeConstant.INT)
    private ItemType type;
    @Schema(description = "名称")
    @TableField(value = "name")
    private String name;
    @Schema(description = "图标")
    @TableField(value = "icon")
    private String icon;
}
